package com.easylinkin.linkappapi.gaodemap.util;

/**
 * class info :
 *
 * @author liuqihang
 * @date 2021/7/27 11:21
 */
public class GaodeUtils {

    public static int getLoopCount(int listSize, int baseNum){
        int count = 0;
        int num = listSize / baseNum;
        if(num == 0){
            count = 1;
        }
        else{
            int num2 = listSize % baseNum;
            if(num2 == 0){
                count = num;
            }else {
                count = num + 1;
            }
        }
        return count;
    }
}
